import {url} from './index';
export const getHots = async (params) => {
    let data = await new Promise((resolve) => {
        wx.request({
            url: url + '/hots',
            method:"GET",
            data:params,
            success(res){
                resolve(res.data);
            }
        })
    });
    return data;
   
}